import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

//引入MintUI
import MintUI from 'mint-ui';
import 'mint-ui/lib/style.css';
Vue.use(MintUI);

//引入Cookies
import VueCookies from 'vue-cookies';
Vue.use(VueCookies);
//设置cookies存储时间
Vue.$cookies.config('1d');

//配置axios
import axios from "axios";
axios.defaults.timeout = 3000; //响应超时时间
axios.defaults.baseURL = "http://172.16.222.16:3000"; //接口地址
//在vue的原型链上加上http
Object.defineProperty(Vue.prototype,'$http',{
  value: axios
});

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
